import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'main',
    component: () => import('../main.vue'),
    props:true
    // path: '/',
    // name: 'Index',
    //
    // component: () => import('../views/index/index.vue')
  },
  {
    path: '/test',
    name: 'Test',
    component: () => import('../views/earth.vue'),
    props:true
  },
  {
    path: '/',
    name: 'Index',
    component: () => import('../views/index/index.vue'),
    props:true
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes: routes
})

export default router
